package org.raymond.iworks.study.basic.designpattern.strategy;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 * 问题:玩具鸭要重写父类所有方法
 */
public class ToyDuck extends Duck{
    @Override
    public void disply() {
        System.out.println("这是玩具鸭");
    }
    public void quack(){
        System.out.println("玩具鸭不能叫");
    }
    public void swim(){
        System.out.println("玩具鸭不能游泳");
    }
    public void fly(){
        System.out.println("玩具鸭不能飞");
    }
}
